
int addToTarget(int from,int to)
{
    int sum = 0;
    int i = from;
    for(;i <= to;++i)
    {
        sum += i;
    }
    return sum;
}
